#include <iostream>
#include <stdio.h>
#include <cstring>
using namespace std;
int main() {
	int b,w;
	while (cin>>b>>w) {
		printf("%d %d\n", 2*(b+w)-1, 3);
		printf("...\n");
		printf("@@.\n");
		while (w>1) {
			printf(".@.\n@@.\n");
			--w;
		}
		while (b>1) {
			printf("...\n@@.\n");
			--b;
		}
		printf("...\n");
	}
}
